<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="org.osee.administration.service.*"%>
<%@ page import="org.osee.administration.domain.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="stylesheet" href="admin/styles/style.css" type="text/css" />
<meta http-equiv="Content-type" content="text/html; charset=UTF-8" />
<title>OSee观点搜索引擎 - 股票列表管理</title>
<script type="text/javascript" src="admin/script/stock.js"></script>
</head>
<body>

<%
	List<Stock> sList = null;
	try {
		sList = (List<Stock>) request.getAttribute("sList");
	} catch (Exception e) {
		sList = new ArrayList<Stock>();
		e.printStackTrace();
	} finally {
		if (sList == null) {
			sList = new ArrayList<Stock>();
		}
	}
	
	String category = (String) request.getAttribute("category");
	if(category == null || category == ""){
		category = "A";
	}
%>
<div id="container"><%@ include file="inc/header.inc"%>
<div class="clr"></div>
<%@ include file="inc/menu.inc"%>

<div id="admin_content">
<div id="banner">
<div class="banner-c1"></div>
<div class="banner-text" style="width: 100px;">股票列表管理</div>
<div class="banner-c2"></div>
</div>
<!-- siderbar   start -->
<div id="new_ad" class="new_sth">
<div class="ad-left-top">
<div class="bar1-left"></div>
<div class="bar1-right"></div>
</div>
<div id="siderContent">
<ul style="text-align: right; padding-bottom: 429px; padding-top: 5px;">
	<li style="float: right;">
	<form action="admin-searchStocks.htm" method="post"><input type="text" name="keyword"
		style="width: 65px; font-size: 11px;" /> <input type="submit"
		value="搜索股票" style="font-size: 11px;" /></form>
	</li>
	<li style="float: right;">
	<form action="admin-stock.htm" method="get">
		<select id="category" name="category"
			style="width: 70px; font-size: 11px;">
			<option value="A" <%if(category.equals("A")) out.println("selected=\'true\'"); %>>上市A股</option>
			<option value="B" <%if(category.equals("B")) out.println("selected=\'true\'"); %>>上市B股</option>
		</select> <input type="submit" name="submit" value="选择范围"
			style="font-size: 11px;" />
	</form>
</li>
	<li style="float: left">
	<ul id="stockList">
		<%
			int i = 1;
			for (Stock s : sList) {
		%>
	<li style="width:160px;">
		<table>
          <tr><td width="25px"><%=i %></td><td width="50px"><a href="admin-stockDetail.htm?id=<%=s.getStockId() %>" target="iframe"><%=s.getName() %></a></td><td width="40px"><%=s.getStockNumber() %></td><td width="15px" onclick="showEdit(<%=i %>)"><img src="admin/img/pencil.png" /></td><td width="15px" onclick="deleteStock(<%=i %>)" title="<%=s.getStockId() %>"><img src="admin/img/delete.png" /></td></tr>
        </table>
	</li>
		<%
			i++;
		}
		%>
	</ul>
	</li>
</ul>
</div>
</div>
<!-- siderbar   end --> <!-- formList start -->
<div id="admin_ctt_list">
<div class="ad-right-top">
<div class="bar2-left"></div>
<div class="bar2-center"></div>
<div class="bar2-right"></div>
</div>
<div id="formContent">
<div id="frame"><iframe src="admin-stockWelcome.htm" frameborder="0" id="iframe" name="iframe"></iframe></div>
</div>
</div>
<!-- formList end -->
<div class="clr"></div>
</div>
<div class="clr"></div>
<div id="footer"><span id="misc_info">&copy; 2009
武汉大学,保留所有权利 | <a target="_blank" href="">联系我们</a> | <a target="_blank"
	href="">隐私条款</a> | <a target="_blank" href="">使用说明</a> </span> <span
	id="version_info"> <a target="_blank" href="">武汉大学</a> | DEMO </span><br />
</div>
</div>
</body>
</html>
